add support for commit for checkpoint