move m_ref from DynamicTree to Node