removing make_nonce, adding register