added stream parsing to streaming.rb