move some stuff from the test program into the rasterizer