fix syntax
fix cookie storage