oh gosh, this is probably spelled wrong allllllll over the place.  This code has been copy-pasted many times b/c I'm deathly afraid to let it outside of a unittest module :S