building msgs from scratch as well