improve deletePath, allow for observation of subpaths