integrate document_base with document_type