registration cleanup