added nonce to args in c++