update upgrade function to handle package list instead of single package