get the build order right