david's cookie changes