apply patch for auto build