fixed issue with spaces in filenames