fix ssl parsing