with buffered stream