reestructured dom-to-model