recode cothread