hopefully nearly done, going to get rid of block type and just fold it into cache type because it's way more fucking trouble than it is worth
still going
oh gosh code... time to valgrind you
got a fancy infinite loop yay yay