bdl: better handling of localization