add support for event registration