cleanups
checkpointing