fixing config.js with additional logging code.