added insertion of routes