created convenience class for getting stream