improved definitions of path prefix, relative path and path mapping