added cookie magic#