added error messages for all unexpected events