extend bam parsing