add macros for event attributes