easier to set max_energy, fix errenous send bug