add a write_config()