trying to fix problem with attachments