reverse order of pkg install as deps are not correct