added script to save history of amount of errors