added some console log messages