add event directives