adding logic to handle file attachments
adding logic to handle file attachments