checkpoint commit, lots of broken/wrong stuff here