refined detecting user language