change judgement logic for host name