pin init, pwr enable/disable functions