doc-type is now part of the metadata