extract wasn't working with filenames with spaces