attachmentService improve