updating the connection script to be able to take in options for the connection settings.