add attach_document