migrated biopieces.rb to stream.rb