added support for events/logs