replace depracted syntax in servertemplate