..re-added logging to main2.js