adding support for specifying host via -h arg in register and exec