added support for extended events to "on" method