fixed some issuses with the power api