added some debugging things. now compiles. tryAgainXor kind of buggy?