handle file name errors