add support for cookie storage