server routing and sockets implemented