updated pkgver handling