fix @deprecated discardingCookies usage