add getParentPath() method to API