added command line option for energy grid