what about the function getParentId() - do we need to normalize $path there as well?