apptemplate is deprecated