checkpoint.  not working yet