need to fix the string operations on the file names