add math language (backport from release branch)