separating routes and sockets from main app file