changed to commonJS module