promote message wrapper to a class