implemented for all_hosts