add explicit console logs to explain what is happening.