upgrade KO to 3.1

tests pass, seems ok?