updating singleton pattern for localization