the sub-keys of documents are optionals