fix ssl issues