update write_filters to use new dedup implementation