adding ability to load in package.json for context; Fixing issue with log.error