         to (if to to utils/epoch-future)
         jobs (:jobs options default-jobs)
         pool (cp/threadpool jobs)
-        mstore (mstore/cassandra-metric-store cass-host options)
-        pstore (pstore/elasticsearch-metric-store es-url options)
+        mstore (if-not (:disable-metric-store options false)
+                 (mstore/cassandra-metric-store cass-host options)
+                 nil)
+        pstore (if-not (:disable-path-store options false)
+                 (pstore/elasticsearch-metric-store es-url options)
+                 nil)
         disable-progress (:disable-progress options false)
         progress-fn (if disable-progress #(println %) (fn [_] (prog/tick)))
         migrate-fn (fn [file]

      (when-not disable-progress
       (prog/done))
      (finally
        (mstore/shutdown mstore)
        (pstore/shutdown pstore)))))

(defn list-paths
  "List paths."

          (let [ttl (- time (- (utils/now) retention))]
            (when (> ttl min-ttl)
              (when run
                (when mstore
                  (mstore/insert mstore tenant rollup period path time
                                 value ttl))
                (when-not @path-stored?
                  (when pstore
                    (pstore/insert pstore tenant path))
                  (swap! path-stored? (fn [_] true)))))))))))

