made sslmode configurable