move routing to its own file