renamed cleanregistries to reset