write nonce to file so that it can be resumed
update version