get rid of deprecated pkg_name() and pkg_version()