minimize console.log usage