fix, pay attention to the depth of the process in the tree
cleaner output for package script
respect dependencies between the dependencies