changing host to localhost