added fixed GetPwrCapabilities function