normalize: improve error messages