[Cl:1][C:2]1[CH:7]=[C:6]([NH:8][CH:9]2[CH2:14][CH2:13][N:12]([C:15]([O:17][C:18]([CH3:21])([CH3:20])[CH3:19])=[O:16])[CH2:11][CH2:10]2)[N:5]2[N:22]=[CH:23][CH:24]=[C:4]2[N:3]=1.O=P(Cl)(Cl)Cl.CN([CH:33]=[O:34])C>>[Cl:1][C:2]1[CH:7]=[C:6]([NH:8][CH:9]2[CH2:10][CH2:11][N:12]([C:15]([O:17][C:18]([CH3:21])([CH3:19])[CH3:20])=[O:16])[CH2:13][CH2:14]2)[N:5]2[N:22]=[CH:23][C:24]([CH:33]=[O:34])=[C:4]2[N:3]=1To tert-butyl 4-(5-chloropyrazolo[1,5-a]pyrimidin-7-ylamino)piperidine-1-carboxylate (1.7 g, 4.8 mmol) in DMF (36 mL), POCl3 (7.7 mL, 82.9 mmol) was added dropwise at room temperature. After the addition was complete, the reaction was stirred for 8 hours. Then, the reaction was quenched by slow addition to ice cold 6N NaOH. The mixture was diluted with water and the solid was collected by filtration. The solid was washed several more times with water then dried under vacuum overnight. The product, tert-butyl 4-(5-chloro-3-formylpyrazolo[1,5-a]pyrimidin-7-ylamino)piperidine-1-carboxylate, was collected as a solid in 48% yield. LCMS (M+1=380)