add which_package() function