added nonce seeds and support for invalid nonce