testing loop extracted to host machine