updated to add in file attachments