simplify message APIs refs #77
move helper code to model refs #77