Add get_prefered_hosts to host utils