creates message spec