process multiple attachments