trying to fix cookie issues