cot: build COTPackage class