add a very limited checkpoint support