some changes to ec2 start function