debug some cookie code