clean up on registration