           
           
           
-        // command rsp
-        ///////////////////
-        // command response messages will have a "command_response" key
+          // command rsp
+          ///////////////////
+          // command response messages will have a "command_response" key
         else if let cmd_rsp = json["command_response"] as? NSString {
           
           // extract other keys from message

  // common function for sending a VehicleCommandRequest
  fileprivate func sendCommandCommon(_ cmd:VehicleCommandRequest) {
    vmlog("in sendCommandCommon")

    if !jsonMode {
      // in protobuf mode, build the command message
      let cbuild = ControlCommand.Builder()

        var timestamp : NSInteger = 0
        var timestamp1 : NSNumber = 0
        if json["timestamp"] != nil {
          timestamp1 = json["timestamp"]  as! NSNumber
          timestamp = NSInteger(timestamp1.int64Value)
          // NSLog("%d",timestamp)
        }
        
        
        // insert a delay if we're reading from a tracefile
        // and we're tracking the timestamps in the file to
        // decide when to send the next message
