handle spaces in path