cleanup in tscheck