create wrapper for cpp. used by rpcgen