updated threaded scripts to process all of -1 before processing any -2