 (defmethod action :aggregate
   [_ eid params get-toolinfo template]
   (let [exp (cmn/get-exp-info eid :exp)
-        {:keys [user cmd action rep compfile]} params
+        {:keys [user cmd phase modifier compfile]} params
         recipient (pams/get-params [:email (keyword user)])]
     (htts/run-aggregation
      eid recipient compfile get-toolinfo template)))


(defmethod action :run
  [_ eid params get-toolinfo template]
  (let [{:keys [user cmd action rep compfile]} params
        rep (if rep :rep nil)
        exp (cmn/get-exp-info eid :exp)
        user (get-mail-recipient user)]
    (cmn/launch-action
     eid user
     get-toolinfo template
     :action action
     :rep rep
     :compfile compfile)))


#_(->> (cmn/exp-ids) (map #(cmn/get-exp-info % :stats)))
(defmethod action :rerun
  [_ eid params get-toolinfo template]
  (let [{:keys [user cmd phase modifier compfile]} params
        rep (if modifier :rep nil)
        outdir (cmn/get-exp-info eid :out)

        exp (cmn/get-exp-info eid :exp)
