. update PackageScanner with generic typing