moved more code to tlscommon, fixed a couple of minor lint warnings