beginning of replay attack
merge
added a renegotiation