localizations and cleanup