add language detection code (even if it's not used)