supporting locale, properly extracting values