remove legacy bugfix
no need for select when we just need the first element
remove trailing slash from default namespace
undo some caching to save memory