refactorings, debugging messages, comments, calculation of LTS, nonce
regeneration if DH GE fails