improved and tested route level insertion