           interpreter (or (:interpreter params) defaul-system-interpreter)
           script-file (prepare-script-file (:body params))  
           command (conj interpreter (.getAbsolutePath script-file))
-          exec-res (deref (commons-exec/sh command 
-                                           {:env (conj {} (System/getenv) env-variables)
-                                            :dir working-dir  
-                                            :watchdog (* 1000 timeout)}))]
+          exec-res (deref (commons-exec-sh command env-variables working-dir timeout))]
       (conj params 
             started 
             {:finished_at (time/now)

                 (logging/debug "prepare-env-variables res: " res)
    res))

(defn exec-script-for-params [params]

  (logging/info (str "exec-script-for-params" (select-keys params [:name])))

          interpreter (or (:interpreter params) defaul-system-interpreter)
          script-file (prepare-script-file (:body params))  
          command (conj interpreter (.getAbsolutePath script-file))
          exec-promise (commons-exec-sh command env-variables working-dir timeout) ]
      (conj params 
            started 
            {:finished_at (time/now)
