more cpp tinkering