have changed ec2 instance to localhost