cookie operation tweaks