add cookie feature