adding connection/disconnection option