remove overly recursive cookie method