rework use of cursor/path for debugability.