fix extension problems
new file check - fix spaces in file path