better workaround for tlslite issue