add raw_save fn