for loop check multiple host