checkpointing before transfert