trying to remove tls dependancy