write config to file, and force regenerate on change