add auto_reconnect