converted to CommonJS style module