added error history feature