checked with jprofiler;
removed debug output (was consuming a considerable amonut of memory and processor time);
todo: resend state reports to the web interface when negotiation is finished;