added some cookie util methods