modified classes for use with a message.tpl.