debug for bam input