added some console logging to facilitate IE debugging