console.log and self/this fix