add EncodePointer Patch