fixing weird gpio export timing bug