Add paths and cursors; use a tree cursor in engine