                                     (clj-mesos.scheduler/launch-tasks
                                       driver
                                       (:id offer)
-                                      [{:name "Riak"
+                                      (doto [{:name "Riak"
                                         :task-id (str "riak-node-" node)
                                         :slave-id (:slave-id offer)
                                         :resources {:cpus 1.0

                                (println "sent")
                                (clj-mesos.scheduler/send-framework-message driver executor slave (.getBytes (pr-str command))))))
                          (when (= :task-running (:state status))
                            (swap! active-executors conj (read-string (String. (:data status) "UTF-8"))))
                          (let [id-from-status (comp #(Integer/parseInt %) str last :task-id)] 
                            (cond 
                              (= (:task-state status) :task-staging) nil

                                                                          :host-path "/var/log/riak-executor"
                                                                          :mode :rw} ]}
                                                   :command {:shell false}}
                                        }] (println "launch-exec-info"))))
                                (clj-mesos.scheduler/decline-offer driver (:id offer))))
                            (catch Exception e
                              (.printStackTrace e)))))))))
