added a console logger