move routing to routes