redefin route and path, add a basic route generator