   (let [scheduler (scheduler/start (scheduler/initialize))
         db-conn (d/connect db-uri)]
     (init-start-jobs scheduler db-conn)
-    (listen-for-team-updates scheduler db-conn)))
+    (future (listen-for-team-updates scheduler db-conn))))
 
 (comment
-  (def conn (connect slack-token))
-
-  ((:shutdown-fn conn))
-
-  (send-to-user! conn "jonas" "ping!")
-
-
-  (async/thread
-    (let [answers (send-questionnaire conn "jonas" ["How are you today?"
-                                                    "What are your plans for tomorrow?"])]
-      (send-to-user! conn "jonas" (str "You answered: " (pr-str answers)))))
+
+  ;; for testing
+  (defonce slack-token (or (System/getenv "SLACK_TOKEN")
+                           (throw (ex-info "No SLACK_TOKEN provided" {}))) )
+
 
   ;; db stuff
 


(defn submit-answers [db-conn domain user answers]
  (try
    (log/infof "Submitting % answers to %s for %s" (count answers) domain user)
    (let [db (d/db db-conn)
          user-eid (d/q '[:find ?member .
                          :in $ ?domain ?user

            [taoensso.timbre :as log]
            [byte-streams])
  (:gen-class))

(defn connect-url [token]
  (str "https://slack.com/api/rtm.start?token=" token))
