fix rpc api for runtime