example of using stream commands