1.update streamoutput to buffered output