working on storing cookies