added command-line flag for energy_grid