adapted to new Language Library interface