cleaning old stuff before adding registration