changed route structure to individual sockets