put in a reset on error