remove hard coded literals in TLS code