add commonjs pattern