added support for multiple events in one call