         }
         
         // append to tx buffer
-        BLETxDataBuffer.add(cmdstr.data(using: String.Encoding.utf8, allowLossyConversion: false)!)
-        
-        print("BLETxDataBuffer.count...",BLETxDataBuffer.count)
-        print("BLETxDataBuffer...",BLETxDataBuffer)
-        
-        self.vm.BLETxDataBuffer = BLETxDataBuffer
+        VehicleManager.sharedInstance.BLETxDataBuffer.add(cmdstr.data(using: String.Encoding.utf8, allowLossyConversion: false)!)
+        
+        print("BLETxDataBuffer.count...", self.vm.BLETxDataBuffer.count)
+        print("BLETxDataBuffer...", self.vm.BLETxDataBuffer)
+        
+        self.vm.BLETxDataBuffer =  self.vm.BLETxDataBuffer
         
         // trigger a BLE data send
         self.vm.BLESendFunction()

                print(cdata2)
                
                // append to tx buffer
                BLETxDataBuffer.add(cdata2)
                
                // trigger a BLE data send
                vm.BLESendFunction()
                
            } catch {
                print("cmd msg build failed")

    fileprivate var managerDebug : Bool = false

    // data buffer for storing vehicle messages to send to BTLE
   // fileprivate var BLETxDataBuffer: NSMutableArray! = NSMutableArray()
    
    var vm = VehicleManager.sharedInstance

