Found a bad bad bug in autoMatch, need to reconsider the algo