math utils + better karma stats