support for dynamic language switching