adding support for data channel events and other event handlers