make connect/reconnect/disconnect can work