add option debug_save_to_file