add power mang code