to make ts.pl and tc.pl ok