replacing console.log with winston