If you were having problems with the .cfg file, what you have to do is make the file read-only after you alter it so that it can't be changed.