updated main portion of cookie struct code to new rust version