spec for message system