kind of gen_keys if not already present