refactored into one-time and regular reset scripts