add support for language switching on fly