logging (template issue?)