attach_doc