ref defpath is "." for top-level, not empty string