switching to cookies