added some code implementing other-language functionality