move has_gpio to config