add cookie manipulating functions