checkpointing analysis code to wrap it up later