some improvements in mod_gpio module