little improvement of _setupSavedConnections function