better error handling
die IncompleteParse if its a partial parse