corrections in remote command server for broker operation to return json result