added checkpointer as thread