move OrderedDependencies to context