added logged messages to console.log