updated for ec2