removed direct access to template (maybe)