   (:use [seesaw.core])
   (:use [seesaw.mig])
   (:use [seesaw.border])
+  (:use [seesaw.swingx])
   (:use [seesaw.widgets.log-window])
   (:require [clojure.string :refer [blank?]])
   (:require [clojure.core.async :refer [chan >!! <!! <! >! alts!! alts! timeout thread put! go go-loop close!]])
   (:require [ecregister.avatars :as av])
   )
-(require '[ecregister.avatars :as av])
-(use '[seesaw.border])
 
 ;; to be evaluated in *scratch*, to be executed in clj buffer
 ;; (define-key clojure-mode-map (kbd "C-c SPC")

    (go
     (let [c (chan)
           resp (<! (av/get-avatar-url username c))]
       (if (= resp :error)
         (log lb-log (str "failed to retrieve avatar image for '" username "'\n"))
         (let [image (<! (av/read-image (first resp) c))

                              ;; important to put it back to channel immediately so others could read
                              (>! active-chan false)
                              (update-state :username (text te-name))
                              (show-busy-indicators true form)
                              (prepare-avatars (text te-name) lb-log form)
                              ))))

