more defines to if history should be written to file
fixed conflicts