attempt at cookie fix