getting templates to work