add pruning to fetch