cookies refactoring