we fixed error reporting, refactoring, get_nonce off by one