updated to use wrapped commonjs format