now handles the deprecatedin template