migrate to cjs