compatibility with external bams improved and smoketests updated