fix some ssl errors