minor changes to get working on ec2