fixing the cookie setup
the accompanying changes in Response classes