changed package declarations to ensure_packages()