added flag to disable clearing of a code if it was correct
stupid line endings