adding support for treatHostsAsOnline()