add named routes and path method.