add getHost method