set up attachments