hacking on match_on memory usage