added support for language cookies