update router.flat path