refactored v2 routes out from the core and old v1 routes