edited to work on amazon ec2 and on port 80