add save_flag option