updated fetchPossibleHosts logic