setting msgtype in builders