added references to parent nodes. one cas use getParent() and setParent(ptr) now