reordered loading of dependencies