added ability to add attachments