move from code.google.com/p/matchman