working draft of cpaMinSamp - first commit