main and cc skeletons