prepare for retries in tasks