first attempt at adding pkgr support