sort out routes file