deprecated loadTemplates client-side as well