fixed gpio issues