change ex_create_keypair that is deprecated