rename to extract-document-data