fix console.log and other small things.