made modifications to s3contact and ec2