use new get-pkg-name function