More advances on file adapter and file selector. checkpointing...