added support to samtools or picard to generate bam