store temp_file func in engines