july 9 used and added res_keypair