handle long filenames