fix SSL issues