cleanup order of dependencies