set default attachments to empty array if not defined