reenable file renaming (disabled for debug, forgot in previous comming);