the (untested, broken) draft renderer code