term and cursor
adding IsLeaf
noop writer