refactor power supply configuration