logic and routes for resetting configs