fix collection registering and schema namespacing