move the power mode command to power.c