1) Add error checking after the first pass 2) Add try/catch around checking constructing the parser (checking if file exists)