finish rpc library