   "turns a seq of endpoints into
   an array of endpoints"
   [endpoints]
-  (let [a (make-array String (count endpoints))]
+  (let [^"[Ljava.lang.String;" a (make-array String (count endpoints))]
     (loop  [i 0]
       (if (<= (count endpoints) i)
         a

             JsonSerializer
             ObjectMapper
             module.SimpleModule)
           (com.fasterxml.jackson.core Version)))

(def client-version "yeller-clojure-client: 1.3.2")

(defn default-io-error-handler [backend error]
  (.println *err* (str "Yeller: an io error ocurred whilst talking to yeller: "))
  (.printStackTrace error *err*))

(defn default-auth-error-handler [backend error]
  (.println *err* (str "Yeller: an authentication error ocurred whilst talking to yeller: " error))
  (.printStackTrace error *err*))

(defn set-error-handlers! [client options]
  (if (or (:auth-error-handler options)
          (:io-error-handler options))
    (let [auth (:auth-error-handler options default-auth-error-handler)

  "turns a seq of application packages into
  an array of application packages"
  [app-packages]
  (let [^"[Ljava.lang.String;" a (make-array String (count app-packages))]
    (loop  [i 0]
      (if (<= (count app-packages) i)
        a
