refine some console.log