 
 (comment
 
-  (def ruleset2
-    {:routes
-     {:book-flight
-      {:transitions {:auth-checker :overbooked-checker-remote}}}})
+  (def ruleset1
+    {:units
+     {:browser
+      #{:overbooked-checker :booker}
+      :server
+      #{:auth-checker}}
 
-  (def ruleset1
-    ;;; you can have many routes
-    {:routes
+     ;;; you can have many routes
+     :routes
 
      ;;; defining a route :book-flight
      {:book-flight

      resmsgs)
    (do (warn "dropping message due to high transition-count")
        [])))

#_(defrecord MessageRouter [ruleset]


                     :booker {:transform (fn [msg] (assoc msg :checked true))
                              :next [:invoice-generator (fn [msg] :notifier)]}}}}})

  #_(def router1 (message-router ruleset1))

  (->> (message :book-flight {:foo :bar})
