stabilized error handling.