renaming nonces
changes
working on secure channel