added locale switching