improve tstools.html for STC recovery