hook up the hosts to the api