implement a karma version function