cleanup_and_registration