only resolve after packages are installed
updated cleaning part