this stuff was a bit hairy, but the tests are pretty solid