merge attachments