added possibility to override default connection settings