added support for multiple file attachments