added the functionality to stream buffer contents