refactors routing system according to technotes