added event emit and handler for connect_driver