change authorize_key_gen for list and string