updates for ec2 connection