add cookie utility.