refactors next chunk/story logic into a route