         (do
           (.println *err* (str "\nDeploying " (:group jarmap) "/"
                                (:name jarmap) " " (:version jarmap)))
-          (db/add-jar (first (.getArgs ctx)) jarmap true)
+          (db/add-jar account jarmap true)
           (maven/deploy-model jarfile model
                               (str "file://" (:repo config)))
-          (db/add-jar (first (.getArgs ctx)) jarmap))
+          (db/add-jar account jarmap))
         (throw (Exception. (str "You need to give me one of: " names)))))
     (.println *err* (str "\nSuccess! Your jars are now available from "
                          "http://clojars.org/"))

                    FileOutputStream)
           com.martiansoftware.nailgun.NGContext)
  (:use [clojars.config :only [config]])
  (:require [clojars.maven   :as maven]
            [clojars.db      :as db])
  (:gen-class
   :methods [#^{:static true}
             [nailMain [com.martiansoftware.nailgun.NGContext] void]]))

                                             (int cmd) "'")))))))))

     (catch Throwable t
       ;; (.printStackTrace t *err*)
       (.println (.err ctx) (str "Error: " (.getMessage t)))
       (.flush (.err ctx))
       (throw t))
