1.add gen_temp_name_post() 2. move do_create def of InMemory to cpp