generate routes file