implemented nonce, date formatting