work in progress with rpc