added connection event handlers