move routes into a separate package