use ensure_packages() , (properly this time)


I also noticed slightly too late that ensure_packages() takes an array not a list.  Here's the proper version