added setting for locale