add output and energy_snapshot