why does this procedure get called twice, once with cookies and once without - Theo's Typesafe Cult