make sure to initialize LibraryConfig::bam_file_index