fixes to GPIO controller