adding console.dir debugging