support substitutions in msg format