iterate over hosts