fixed signature for parser.on("write"...) example