Fix routes and move config files