dynamic route traversal functioning