added basic server, and route generation in client