cleaned up use of remote command execution