hack to use as commonjs module