integrating power API onto marss main functions