moved post-simulation stuff to finishSimulation