first edits to repleace the shared_ptr reference to the Element Node, BUG: Dosn't work on the root-node yet