use requestHost method (refactor)