error messages preprocess