match on type instead of extractor