fixed cookie handling
Merge branch 'hotfix/0.2.2'