correctly save the config file for calibration