fixes routes and files index