attachments are now being saved to a temp directory