added a parse error callback