install only the packages that are needed