update will-change
refactor cookie handling