event emmiter for attachments