ported over code from the new matchismotabbed edition