extract routes to config file