added some methods to CookieService