changed checkpoint API
updated formating