* worked with more complex situations * the original pr not work when and a short route with the same prefix to some already added routes