updated gpio script