added gpio setmode line