updated bam driver to accept sm names