added code for running simulations on EC2