setup bam headers and check