use pkg_attributes config rather than hard-coded values
remove hardcoded keys from debug logging
this doesn't seem to work and doesn't appear to provide much more info