changed hard_coded tmp filename