figuring out cookies