adjust client to use the result object