stupid mistake on my part i assumed since gpio x xa gpio x xa that gpio x xaf  unfortunately  gpio x gpio x are undefined so gpio x is actually  xad this did not turn up in my testing since my board has been reworked with a strong pull up on gpio x such that it is high by default on boot 