added logging around publishing templates and changed another templates-api -> templates