use rather ensure_packages

Stdlib `ensure_packages` will avoid duplicate resource declaration error, if packages was previously defined