[routing] main class implementation