set host to default_host in case it is not "localhost"