changed package depenencies to use ensure_packages from stdlib