add skeleton codes for distributed execution