remove exception logging, fix nonce bug, add nonce length