added parent/child states for nodes