Chained-XOR
minor fixes