added a cppmain