change the way get folderRoute
lower efficiency but more clean code