add working error state