rewrote server in cljs