getting checkpoint directory