massage cpp into usable state