bugfix: deprecated usage of old cookie class