refactor out tlsTransporter