updated to match the latest client sdk