more ssl fixes