the splitting of the file name is now done properly