loop over packages