add patch to XStream