auto rename and recognize files