rename and delete obsolete files