generalize the freebase prefilter so it handles the new dumps