new versions of counter2power.py and cchannels.py