update for hosts
add batch test