Add batch function

can be run to multiple hosts