an objectMode to regular stream transform