made locale configurable