bug fixes for newrouting