xpatch in console