added miscellaneous evaluation code from long ago