use a simpler/better shim for commonjs packaging