Kaizen to rpc code