more correct route namespacing logic