add process checkpoint function.