added better support for cookies and the country