console.log to emit