fix deprecated Client reference