rename the endpoint_type