Used pasrse with file object instead of a parseString with a read - fixes #1007