added message template support