add routine to read checkpoint files