getParent() and getNameCount() working