added support for languages with IDs greater than 256