chang cmd to CommonJS Standard