removed more legacy tls error handling stuff