script to process wc file for stop threshold