didn't handle file with spaces before