added total row; API clearmatches