add strict mode to msgs