fix a bug for packages for files in need of a lot of libraries and fix output.