added SecretBox handshake and logging