rendering routes, connecting sockets