changes on midas-power.c