setting host to localhost