use pkg.name
improve error messages