added support for events. model integration remaining.