update root and fix some associations