add power managment

(1) add power managment
(2) modify key2, key3 definitions