hostname check condition altered