refactor to use requestHost method