modified ec2 scripts