added scripts to generate errors in reference data