support objects as event names