return callback values in parser to allow synchronous parsing