some changes to handle regex routes