minor fixes and enabling language detection