convert to roots template