added getHost method