use client argument instead of request.client