rpc stuff all working now