matchscript

It's still a bit of a mess.