added locale verification