fixed the message formatting
wired the templater into message generation
fixing the template