Optimized matching

is this function still making sense given we have a specific model/file to test matching stuff?