modify fy.rename and rm tmp files