changed way to find the route pattern
update doc block