ensure_packages with params