refactor next_route to split getting/counting/setting
version 0.2.0.pre2