added bam support