add document processing