add checkpoint skeleton codes