added locale and options setter