setting up socket.io queue - refactoring routes