add default connection function