add support for multiple events