added cookie control