fixed hostname check