fix server and recursor templates