convert routes to use data file