set up proper error message parsing