 (defn make-summary-metadata [settings]
   (let [depth (core getBytesPerPixel)
         channels (settings :channels)
-        num-camera-channels (long (core getNumberOfCameraChannels))
-        super-channels (flatten (for [channel channels] (repeat num-camera-channels channel)))]
+        num-camera-channels (core getNumberOfCameraChannels)
+        simple-channels (if-not (empty? channels) channels [{:name "Default" :color java.awt.Color/WHITE}])
+        super-channels (flatten (for [channel simple-channels] (repeat num-camera-channels channel)))]
      (JSONObject. {
       "BitDepth" (core getImageBitDepth)
       "Channels" (count super-channels)

  (when (and (@state :init-continuous-focus)
             (not (core isContinuousFocusEnabled)))
    (core enableContinuousFocus true))
  (return-config))

;; running events
  


(defn collect [event out-queue]
  (condp = (:task event)
                :snap (doseq [sub-event (make-multicamera-events event)]
                        (collect-snap-image sub-event out-queue))
                :burst (collect-burst-images event out-queue)))

(defn z-in-msp [msp z-drive]
