moved routes to config