added cookie clearing