changed some commits to commonjs style