libs for bam