removed ec2 specific code