added power switching circuit