added missing next() function to each route