trying to get rpc to work correctly.