add most msgC-parsing and msgE-validation code