pseudo rewrite w possible tclkit packaging in mind