standard format to display error messages; little changes in common.js, etc.