added gpio support