add save config methods.