another attempt to fix gpio int bug