finally got the XOR plugin and library in a working state