updated aath with language detection