changing global to exports for console.re