better hook up to KeyGen