refactor to use YAML based route files