made private, changed console.log to util.print