patch for setting prep ids per task in task chain