add patch for endpoints