sorting out kinds for email templates