properly creates reference paths.