simple groundwork code for cpp apps