split the rpc call result code to other file