remove old rpc api class