added native XOR lib