fixed hostname guard