printing the pub stream