[UPDATE] sink stream to collect all data before writing.