add switch to prevent reset