added ability to restart simulations and reuse temp folder