split out cc for clarity
added support for cfg arguments