pass parse error to callback