error correction script now accepts single shuffled file