server functions through lein run