issues with creating attachments