adding power rail control to programming scrits