handle pruned indexes