fixed misreference of $ssl instead of $this->ssl