execute_remote_cmd modified