new function: packagesmatching