got the communicator almost working. The XMEGA sends messages that break the code. Also made the keep alive its own  thread