simplify uri parse logic to the helper
path router
move routing logic to router