fixed use of labels in stats output with option to pass language index in url params