pkgid and make dead code public