[FIX] Adapted the sam/bam module to new stream modul.

remind me to revise that function, later