cookie investigation bugfixes