hack for fixing collect_hosts