make attachments optional