changes made to work on ec2