more compatibility with paths with packages contained