workable interface to BAM indexes
removed some lint