routing.cpp update