cleanup cpp genrator