cookie and base class