history error handling