add interface of cpp