add threading to remote commands