also get the dependency order right