simplify cookie manager and client interaction