implement get_host