move routes to own lib