add gpio fixes and reset button supportÂ