better detection of packages installed