add rpc stuff + ccheckpoint