set auto_reconnect to true