remove extractPackages function