added func to do the remote command call