makes state=latest work with lists of packages