minor change for reconnect mechanism
fix memory leakage