rename record-ref to rtd-ref
meta-tree compile ok
rbtree compile ok, but buggy