added connection event support