copied CC feature extractor from Callie's fork