added clear_extra for removing instances when config.count decreases