add get package name function