attempting to fix cookie problem