added cookie functionality