moving from custom router to routes
moving from error.js to context-error