energy cap. fixes #110