revise (ignore empty hostname from server)