updated dynamic router to fix vagrant issue