ensure_packages array