removed some (probably) dead error message code